import request from '@/utils/request'

export function getAllMenu() {
  return request({
    url: '/menuMange/getAllMenu',
    method: 'get',
  })
}
//添加菜单
export function addMenu(data) {
  return request({
    url: '/menuMange/addMenu',
    method: 'post',
    data,
  })
}

export function modMenu(data) {
  return request({
    url: '/menuMange/modMenu',
    method: 'post',
    data,
  })
}

export function deleteMenu(data) {
  return request({
    url: '/menuMange/deleteMenu',
    method: 'post',
    data,
  })
}
